package com.base.lock.redis.shouer;

/**
 * 不能获取锁的异常类
 */
public class UnableToAquireLockException extends RuntimeException {
	
	private static final long serialVersionUID = 1L;

	private String code;

    private Object data;

    public UnableToAquireLockException(String code,String message) {
        super(message);
        this.code = code;
    }
    
    public UnableToAquireLockException(String code,String message, Throwable cause) {
        super(message,cause);
        this.code = code;
    }

    public UnableToAquireLockException(String code,String message,Object data){
        super(message);
        this.code = code;
        this.data = data;
    }

    public String getCode() {
      return code;
    }

    public void setCode(String code) {
      this.code = code;
    }

    public Object getData() {
      return data;
    }

    public void setData(Object data) {
      this.data = data;
    }
    
}
